package com.xuecheng.teaching;


import com.xuecheng.api.comment.model.dto.CommentDTO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.teaching.agent.CommentApiAgent;
import com.xuecheng.teaching.agent.LearningApiAgent;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@SpringBootTest
public class FeignTesat {

    @Resource
    CommentApiAgent commentApiAgent;
    @Resource
    LearningApiAgent learningApiAgent;


    @Test
    public void testComment(){
//        PageVO<CommentDTO> pageVO = commentApiAgent.queryMCourseCommentList2(new PageRequestParams());

//        System.out.println(pageVO
//        );

//        Integer count = learningApiAgent.getCount(11L);
//        System.out.println(count);
        PageRequestParams pageRequestParams = new PageRequestParams();
        pageRequestParams.setPageNo(2L);
        pageRequestParams.setPageSize(10L);
        commentApiAgent.queryMCourseCommentList(pageRequestParams);

    }
}
